import { IsNotEmpty, Max, IsOptional, MaxLength } from "class-validator";

export class AddRoleDto {

  @IsOptional()
  id: number

  @IsNotEmpty()
  @MaxLength(30)
  roleName: string;

  @IsNotEmpty()
  @MaxLength(30)
  roleCode: string;

  @Max(10000)
  createUserId: number;
}